<?php
$s1=new SoapClient("http://59.52.34.234/CompanySendSmInf/services/SmsInf?wsdl",array('encoding' =>'UTF-8','cache_wsdl' =>0));//龙虎山短信接口地址
//date_default_timezone_set('PRC');
$sequenceId =100001;//客户端请求接口流水Id
$ac="07016658110";//短信群发系统的登录账号
$pw = "658110"; //注册密码
$sendphoneNo =""; //发送号码 为空，系统随机通过该注册用户绑定用户号码池中号码发送短信。 
$recvPhoneNo =$_REQUEST['x_target_no']; //接收号码
$msgContent =$_REQUEST['x_memo']; //接收号码
// $recvPhoneNo = '18650075419';
// $msgContent ='欢迎使用票付通平台。验证码：123456，输入验证继续完成操作。';
//$scheduleTime ="2014-07-01T09:58:35.000+08:00";
$dtime = date('Y-m-d H:i:s',time());
$dtime = strtotime($dtime);
//$scheduleTime = new DateTime();
//$playtime = date("Y-m-d");
// $msgContent ="龙虎山景区全程优惠票现场支付:2张,凭证号:123456游玩时间:2014-09-20,取票信息:全程优惠票现场支付,此为凭证,请妥善保管。【龙虎山】";
$array = array("sequenceId"=>$sequenceId,"accountCode"=>$ac,"accountPasswd"=>$pw,'sendphoneNo'=>$sendphoneNo,'msgContent'=>$msgContent,'recvPhoneNo'=>$recvPhoneNo,'scheduleTime'=>$dtime);
$xml=$s1->__soapCall("SendInstantSms",array($array));
//print_r($xml);
// print_r($xml);
if ($xml->resultId == 1) echo 1;//发送成功
else echo -1;//发送失败
?>